package com.fyh.feign.fallback;

import com.fyh.constant.MessageConstant;
import com.fyh.entity.common.Result;
import com.fyh.entity.job.JobPosition;
import com.fyh.feign.ChatJobFeignClient;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeoutException;

@Component
public class ChatJobFeignClientFallback implements ChatJobFeignClient {

    @Override
    public Result<JobPosition> getJobPositionDetail(Long positionId) {
        System.out.println(MessageConstant.GET_JOB_DETAIL_FAILED);
        throw new RuntimeException(MessageConstant.GET_JOB_DETAIL_FAILED);
    }
}
